package com.youpai.platform.chat.web.entity.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @date: 2022/7/17 14:07
 * @author: Anna
 * @version: 1.0
 * @description: 同步历史消息列表请求参数
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "SyncMsgListRequest", description = "同步历史消息列表请求参数")
public class SyncMsgListRequest {

    /**
     * sessionId
     */
    @NotBlank(message = "sessionId不能为空")
    @ApiModelProperty(value = "sessionId")
    private String sessionId;

    /**
     * 起始消息id
     */
    @NotBlank(message = "fromMsgId不能为空")
    @ApiModelProperty(value = "开始查询的消息id")
    private String fromMsgId;

    /**
     * 数量不能为空
     */
    @NotNull(message = "数量不能为空")
    @ApiModelProperty(value = "数量")
    private Integer count;
}
